package website.digitalocean.chapter19;

import lombok.extern.slf4j.Slf4j;

/**
 * @author: longhc@citycloud.com.cn
 * @since: 2023/2/16 14:18
 * @version: 1.0
 */
@Slf4j
public class ComputerPartDisplayVisitor implements ComputerPartVisitor {
    @Override
    public void visit(Computer computer) {
        log.info("访问[computer]");
    }

    @Override
    public void visit(KeyBoard keyBoard) {
        log.info("访问[keyBoard]");
    }

    @Override
    public void visit(Monitor monitor) {
        log.info("访问[monitor]");
    }

    @Override
    public void visit(Mouse mouse) {
        log.info("访问[mouse]");
    }
}
